using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace mmoss.application

{
    public partial class frmTouchKeyboard : Form
    {
        public string TypedString;
        public frmTouchKeyboard()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            keyboardcontrol1.KeyboardType = KeyboardClassLibrary.BoW.Standard;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            keyboardcontrol1.KeyboardType = KeyboardClassLibrary.BoW.Alphabetical;
        }

        private void button3_Click(object sender, EventArgs e)
        {
            keyboardcontrol1.KeyboardType = KeyboardClassLibrary.BoW.Kids;
        }

        private void keyboardcontrol1_UserKeyPressed(object sender, KeyboardClassLibrary.KeyboardEventArgs e)
        {
            richTextBox1.Focus();
            SendKeys.Send(e.KeyboardKeyPressed);
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            TypedString = "";
            this.Close();
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            TypedString = richTextBox1.Text;
            this.Close();
        }
    }
}